// 手动触发窗口resize事件
export const handleResize = () => {
        let event = document.createEvent("HTMLEvents");
        event.initEvent("resize", true, true);
        window.dispatchEvent(event);
}